Skip to content

fix(om2.0): consistency between text and abnf on Summary fields#2886

Merged
bwplotka merged 1 commit intomainfrom
krajo/om2-summery-may
Mar 13, 2026
Merged

fix(om2.0): consistency between text and abnf on Summary fields#2886
bwplotka merged 1 commit intomainfrom
krajo/om2-summery-may

Conversation

@krajorama
Copy link
Member

In #2627 and #2634 we've made the Sum and Count mandatory fields in histograms. They became mandatory in Summary due to the ABNF as that has precedence.

This PR changes the data model to follow the ABNF and be consistent with histograms.

Note: this is probably the last chance to reverse course and make Sum and/or Count optional without a breaking change.

bwplotka
bwplotka previously approved these changes Mar 11, 2026
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

In #2627 and #2634 we've made the Sum and Count mandatory fields in
histograms. They became mandatory in Summary due to the ABNF as that
has precedence.

This PR changes the data model to follow the ABNF and be consistent
with histograms.

Note: this is probably the last chance to reverse course and make Sum
and/or Count optional without a breaking change.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>

# Conflicts:
#	docs/specs/om/open_metrics_spec_2_0.md
@bwplotka bwplotka merged commit e3585af into main Mar 13, 2026
6 checks passed
@bwplotka bwplotka deleted the krajo/om2-summery-may branch March 13, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants